package com.service.order.feign;


import com.service.order.feign.impl.ProductFeignClientImpl;
import com.service.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "server-product",fallback = ProductFeignClientImpl.class)
public interface ProductFeignClient {

    /**
     * 创建产品信息
     * @return
     */
    @GetMapping("/api/product/createProduct")
    Product createProductFeign();
}
